package org.mercworks.igamexmlparser.dvo;

public class Node
{
	private Integer nodeId;
	private Integer nodeParentId;
	private String nodeType;
	private Mesh mesh;
	private Modifiers modifiers;
	private PositionXYZController positionXYZController;
	private EulerController eulerController;
	
	public Integer getNodeId()
	{
		return nodeId;
	}
	
	public void setNodeId(Integer nodeId)
	{
		this.nodeId = nodeId;
	}
	
	/**
	 * @return the nodeParentId
	 */
	public Integer getNodeParentId()
	{
		return nodeParentId;
	}

	/**
	 * @param nodeParentId the nodeParentId to set
	 */
	public void setNodeParentId(Integer nodeParentId)
	{
		this.nodeParentId = nodeParentId;
	}

	public String getNodeType()
	{
		return nodeType;
	}
	
	public void setNodeType(String nodeType)
	{
		this.nodeType = nodeType;
	}
	
	public Mesh getMesh()
	{
		return mesh;
	}
	
	public void setMesh(Mesh mesh)
	{
		this.mesh = mesh;
	}
	
	public Modifiers getModifiers()
	{
		return modifiers;
	}
	
	public void setModifiers(Modifiers modifiers)
	{
		this.modifiers = modifiers;
	}
	
	public PositionXYZController getPositionXYZController()
	{
		return positionXYZController;
	}
	
	public void setPositionXYZController(PositionXYZController positionXYZController)
	{
		this.positionXYZController = positionXYZController;
	}
	
	/**
	 * @return the eulerController
	 */
	public EulerController getEulerController()
	{
		return eulerController;
	}

	/**
	 * @param eulerController the eulerController to set
	 */
	public void setEulerController(EulerController eulerController)
	{
		this.eulerController = eulerController;
	}

	public String toString()
	{
		StringBuffer sb = new StringBuffer();
		sb.append("\n\t*** NODE INFORMATION ***\n\t{\n");
		
		sb.append("\t\t[NODE ID: " + nodeId + ", NODE PARENT ID: " + nodeParentId + ", NODE TYPE: " + nodeType + "]\n\n");
		
		if(mesh != null)
			sb.append(mesh.toString());
		
		if(modifiers != null)
			sb.append(modifiers.toString());
		
		if(positionXYZController != null)
			sb.append(positionXYZController.toString());
		
		if(eulerController != null)
			sb.append(eulerController);
		
		sb.append("\t}\n\n");
		
		return sb.toString();
	}
}
